package com.itsccn.springaop.controller;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itsccn.springaop.annotation.Log;

/** 
* @ClassName: IndexController 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author 孙晨
* @date 2016年12月16日 下午5:32:54 
*  
*/
@Controller
public class IndexController {
	
	/** 
	 * @param name
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "/index", method ={RequestMethod.GET,RequestMethod.POST})
	@ResponseBody
	public List<String> index(@RequestParam("name") String name) throws Exception{ 
		List<String> list = new ArrayList<String>();
		list.add(name);
		list.add("aaa");
		list.add("bbb");
		list.add("ccc");
		return list;
	}
}
